<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function f3() {
        console.log("f3 begin");
        console.log("f3 end");
      }
      function f2() {
        console.log("f2 begin");
        f3();
        console.log("f2 end");
      }
      function f1() {
        console.log("fl begin");
        f2();
        console.log("f1 end");
      }
      f1(0);

      // fl begin f2 begin f3 begin f3 end f2 end f1 end
    </script>
  </body>
</html>
